<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AdminUser extends Model
{
    protected $table      = 'admin_user';
    protected $primaryKey = 'admin_user_id';
    protected $guarded    = [];

    const STATUS_ENABLE  = 1;
    const STATUS_DISABLE = 0;

    public function scopeEnable($query)
    {
        return $query->where([
            'admin_user_status' => self::STATUS_ENABLE,
        ]);
    }
}
